import Cookies from 'js-cookie' // js-cookie cookie存储的包

const TokenKey = 'hrsaas-token'
// 获取token
export function getTokenInfo() {
  return Cookies.get(TokenKey)
  // localStorage.getItem(k)
}
// 设置token
export function setTokenInfo(token) {
  return Cookies.set(TokenKey, token)
  // localStorage.setItem(k,v)
}
// 移除token
export function removeTokenInfo() {
  return Cookies.remove(TokenKey)
  // localStorage.removeItem(k)
}
